package com.fc.authentication.modules.member.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by Sunny on 2018/6/28.
 */
@JsonSerialize
@Getter
@Setter
public class MemberCreateRequest {

    @NotBlank(message = "姓名不能为空")
    private String name;

    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @NotBlank(message = "邮箱不能为空")
    private String email;

    @NotNull(message = "年龄不能为空")
    private Integer age;
}
